#import "AFHTTPSessionManager.h"
#import "BasicTypes.h"

@interface RSTAPIClient : AFHTTPSessionManager

+ (instancetype)sharedClient;

//- (void)setAuthorizationHeaderWithToken:(NSString *)token;

+ (void)registerAccount:(NSString*)NickName
               passWord:(NSString*)Password
                 school:(NSUInteger)School
            phoneNumber:(NSString*)PhoneNumber
               favorite:(NSInteger)Favourite
                success:(void (^)(id data))success
                failure:(void (^)(id data))failure;

+ (void)loginAccount:(NSString*)phoneNumber
            passWord:(NSString*)passWord
             success:(void (^)(id data))success
             failure:(void (^)(id data))failure;
//
+ (void)getSelfProfile:(void (^)(id data))success
               failure:(void (^)(id data))failure;

//+ (void)bindingAccount:(NSString*)email
//               success:(void (^)(id data))success
//               failure:(void (^)(id data))failure;
//
//+ (void)verifyEmail:(NSString*)email
//               code:(NSString*)code
//            success:(void (^)(id data))success
//            failure:(void (^)(id data))failure;
//
//+ (void)changeScreenName:(NSString*)username
//                 success:(void (^)(id data))success
//                 failure:(void (^)(id data))failure;
//
//+ (void)survive:(void (^)(id data))success
//        failure:(void (^)(id data))failure;
//
//+ (void)getPurgeCountdown:(void (^)(id data))success
//                  failure:(void (^)(id data))failure;
//
//+ (void)emailLogin:(NSString*)email
//           success:(void (^)(id data))success
//           failure:(void (^)(id data))failure;
//
+ (void)verifyEmailLogin:(NSString*)email
                    code:(NSString*)code
                deviceId:(NSString*)deviceId
                 success:(void (^)(id data))success
                 failure:(void (^)(id data))failure;

//+ (void)checkAppNewVersion:(NSString*)version
//                   success:(void (^)(id JSON))success
//                   failure:(void (^)(id JSON))failure;

@end
